<ion-header>
  <ion-toolbar>
    <ion-buttons slot="start">

      <ng-container *ngIf="tagData; else hasNotTagDataTemplate">
        <ion-button appDebounceClick (debounceClick)="close()">
          <img class="header-icon-img"
            src="assets/img/close.png"
            alt="back" />
        </ion-button>
      </ng-container>
      <ng-template #hasNotTagDataTemplate>
        <ion-button appDebounceClick (debounceClick)="back()">
          <img class="header-icon-img" src="assets/img/back_left.png" alt="back" />
        </ion-button>
      </ng-template>






    </ion-buttons>
    <!-- <ion-title class="nav-title" *ngIf="titleBar?.title">{{ titleBar?.title?.labelName }}</ion-title> -->
    <ion-title class="nav-title" *ngIf="title && title.length > 0">{{title}}</ion-title>

    <ng-container *ngIf="titleBar?.share">
      <ng-container *ngIf="titleBar.share.layout === 'left'">
        <ion-buttons slot="start" appDebounceClick (debounceClick)="share(titleBar.share.link)">
          <ng-container *ngIf="
              titleBar.cssStyle === 'white' || titleBar.cssStyle === undefined
            ">
            <img class="header-icon-img" src="assets/icon/nav_icon_share@3x.png" alt="share" />
          </ng-container>
          <ng-container *ngIf="titleBar.cssStyle === 'orange'">
            <img class="header-icon-img" src="assets/icon/nav_icon_share_white@3x.png" alt="share" />
          </ng-container>
        </ion-buttons>
      </ng-container>

      <ng-container *ngIf="titleBar.share.layout === 'right'">
        <ion-buttons slot="end" appDebounceClick (debounceClick)="share(titleBar.share.link)">
          <ng-container *ngIf="
              titleBar.cssStyle === 'white' || titleBar.cssStyle === undefined
            ">
            <img class="header-icon-img-r" src="assets/icon/nav_icon_share@3x.png" alt="share" />
          </ng-container>
          <ng-container *ngIf="titleBar.cssStyle === 'orange'">
            <img class="header-icon-img-r" src="assets/icon/nav_icon_share_white@3x.png" alt="share" />
          </ng-container>
        </ion-buttons>
      </ng-container>
    </ng-container>


  </ion-toolbar>
</ion-header>
<ion-content>
  <iframe id="iframe-url" name="iframe-url"></iframe>
</ion-content>